#ifndef GT_UTIL_H
#define GT_UTIL_H

#include "isearch.h"
#include <libconfig.h>

typedef char *(*parser_t)(option_t *, char *, const char *);

int is_selectable(search_t *search, int index);
void *from_options_to_parser(option_t *options);

char *regex(option_t *options, char *line, const char *pattern);
char *strstr_wrapper(option_t *option, char *line, const char *pattern);
char *strcasestr_wrapper(option_t *option, char *line, const char *pattern);

#endif // header file protect
       // ok